package cn.tedu.medicalappointmentsystemk.pojo.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("user")
public class UserPO implements Serializable {
    @TableId(type = IdType.AUTO)
    Long id;
    String username;
    String password;
    String nickname;
    String imgUrl;
    String mobile;
    String gender;
    String documents;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",iso = DateTimeFormat.ISO.DATE_TIME)
    Date birthday;
    String address;
    Integer age;
    String email;
    String ethnicGroup;
    String status;
    String idNumber;
    String maritalStatus;
    String remark;
    Integer enable;

    @TableField(fill = FieldFill.INSERT)
    LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime gmtModified;
}
